package com.gzx.qc.modular.voice.check.mapper;

import com.gzx.qc.modular.voice.check.entity.GzxVoiceCheckDetail;
import com.gzx.qc.modular.voice.check.entity.vo.GzxVoiceCheckDetailVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import vip.xiaonuo.common.mapper.BaseMapperPlus;

import java.util.List;

/**
 * @author zjt
 */
public interface GzxVoiceCheckDetailMapper extends BaseMapperPlus<GzxVoiceCheckDetail, GzxVoiceCheckDetailVo> {

    @Insert("<script>" +
            "INSERT INTO gzx_voice_check_detail (agent, call_id, keyword, content, name)" +
            "VALUES" +
            "<foreach collection='voiceCheckDetailList' item='item' separator=','>" +
            "(#{item.agent}, #{item.callId}, #{item.keyword}, #{item.content}, #{item.name})" +
            "</foreach>" +
            "</script>")
    void insertBatch(@Param("voiceCheckDetailList") List<GzxVoiceCheckDetail> voiceCheckDetailList);
}
